﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using RCSP.Biz.Views;
using RCSP.Biz.Repositories;
using RCSP.Common;
using RCSP.Biz.Models;

namespace RCSP.Biz.Presenters
{
    public class PresetPresenter : BasePresenter<IPresetView>
    {
        private IPresetRepository presetRep;

        public IPresetRepository PresetRep
        {
            get
            {
                if (presetRep == null)
                {
                    presetRep = new PresetRepository();
                }
                return presetRep;
            }
            set { presetRep = value; }
        }

        #region Contructor:

        public PresetPresenter(IPresetView view)
            : base(view)
        {
            presetRep = new PresetRepository();
        }

        #endregion

        public override void DoAction()
        {
           
        }

        public List<Preset> GetPresetByType(int presetType)
        {
            return PresetRep.GetPresetByType(presetType);
        }

    }
}
